home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #9 / K-CD-9-2002.ISO / JASC After Shot / af100evp.exe / Data1.cab / single.xsl26 < prev    next >
Encoding:
Extensible Markup Language  |  2002-02-11  |  5.0 KB  |  110 lines

  1. <?xml version="1.0"?>
  2. <!-- Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. -->
  3. <!-- All rights reserved. -->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  5.     <xsl:template match="/">
  6.         <HTML>
  7.             <xsl:apply-templates/>
  8.         </HTML>
  9.     </xsl:template>
  10.     <xsl:template match="photos">
  11.         <xsl:apply-templates/>
  12.     </xsl:template>
  13.     <xsl:template match="album">
  14.         <xsl:apply-templates select="imagelist"/>
  15.     </xsl:template>
  16.     <xsl:template match="imagelist">
  17.         <xsl:apply-templates select="imageinfo"/>
  18.     </xsl:template>
  19.     <xsl:template match="imageinfo">
  20.         <xsl:element name="ixfile">
  21.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  22. <head>
  23.     
  24.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  25.         <meta name="copyright" content="Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. All rights reserved."/>
  26.         
  27.     </head>
  28.             
  29. <BODY bgcolor="#CCCCCC" text="#FFFFFF">
  30.                 <table width="800" border="5" cellspacing="0" cellpadding="0" align="center" background="graphics/templatebackground.jpg" height="600">
  31.                     <tr valign="top">
  32.                         <td><table border="0" cellspacing="0" cellpadding="0" background=""><tr><td width="115" height="60"></td><td valign="middle" width="685"><div align="center"><font face="Arial, Helvetica, sans-serif" size="5" ><b><xsl:value-of select="title"/></b></font></div></td></tr>
  33. <tr><td height="50"><br kludge=""/></td>
  34.     <td height="50"><br kludge=""/></td></tr>
  35.  <tr> 
  36.             <td valign="top" width="115"><br kludge="" /><br kludge="" /><div align="center"><p>
  37.                 <xsl:apply-templates select="previous"/><xsl:apply-templates select="next"/></p></div></td>
  38.             <td width="685"><table align="center" border="3" cellspacing="2" cellpadding="2" background="graphics/border.gif"><table align="center"><tr> 
  39.                         <td><IMG border="2" vspace="10" hspace="10"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  40.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  41.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></td>
  42.                       </tr></table>
  43. <tr><td></td><td valign="top"><blockquote><blockquote><div align="center"><font face="Arial, Helvetica, sans-serif" size="3" ><br kludge=""/><xsl:choose>
  44.                                                             <xsl:when test="audio_info/@fname[. != '']">
  45.                                                                 <div align="center"><xsl:apply-templates select="audio_info"/></div>
  46.                                                             </xsl:when>
  47.                                                             <xsl:otherwise>
  48.                                                                 <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  49.                                                             </xsl:otherwise>
  50.                                                         </xsl:choose><xsl:choose>
  51.                                                     <xsl:when test="movie_info/@fname[. != '']">
  52.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  53.                                                     </xsl:when>
  54.                                                     <xsl:otherwise>
  55.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  56.                                                     </xsl:otherwise>
  57.                                                 </xsl:choose><xsl:apply-templates select="description">
  58.                                             <!-- recursively apply this template to them -->
  59.                                             <xsl:template>
  60.                                                 <xsl:copy>
  61.                                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  62.                                                 </xsl:copy>
  63.                                             </xsl:template>
  64.                                         </xsl:apply-templates></font> 
  65.                             </div></blockquote></blockquote></td></tr></table></td></tr>
  66.        
  67. </table></td></tr>
  68.  
  69.  
  70.             </table>
  71.             </BODY>
  72.         </xsl:element>
  73.     </xsl:template>
  74.     <xsl:template match="audio_info">
  75.         <xsl:if match="audio_info[@fname != '']">
  76.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  77.                 <img border="0" src="graphics/sound.gif"/></A>
  78.         </xsl:if>
  79.     </xsl:template>
  80.     <xsl:template match="movie_info">
  81.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  82.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  83.     </xsl:template>    <xsl:template match="previous">
  84.         <xsl:value-of/>
  85.         <xsl:choose>
  86.             <xsl:when match="previous[@fname != '']">
  87.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  88.                     <img src="buttons/back2.gif" width="41" height="26" border="0"/></A>
  89.             </xsl:when>
  90.             <xsl:otherwise>
  91.                 <img src="buttons/back2.gif" width="41" height="26" border="0"/>
  92.                 
  93.             </xsl:otherwise>
  94.         </xsl:choose>
  95.     </xsl:template>
  96.     <xsl:template match="next">
  97.         <xsl:value-of/>
  98.         <xsl:choose>
  99.             <xsl:when match="next[@fname != '']">
  100.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  101.                     <img src="buttons/forward2.gif" width="41" height="26" border="0"/></A>
  102.             </xsl:when>
  103.             <xsl:otherwise>
  104.                 <img src="buttons/forward2.gif" width="41" height="26" border="0"/>
  105.             </xsl:otherwise>
  106.         </xsl:choose>
  107.     </xsl:template>
  108. </xsl:stylesheet>
  109.  
  110.